package com.machine.filling.db.modle;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2018/6/6 0006.
 * 广告
 */
@Entity(nameInDb = "ad")
public class AdModle implements Serializable {

    private static final long serialVersionUID = 781700756665498503L;
    @Property
    private int type;//类型: 1图片 2视频

    @Property
    private String httpImgPath;//网络地址

    @Property
    private String localImgPath;//下载后的本地地址

    @Id(autoincrement = false)
    private long id;

    @Property
    private String title;

    @Property
    private String updateD;//更新时间

    @Property
    private long timeLong;//播放时长

    @Generated(hash = 811043664)
    public AdModle(int type, String httpImgPath, String localImgPath, long id,
            String title, String updateD, long timeLong) {
        this.type = type;
        this.httpImgPath = httpImgPath;
        this.localImgPath = localImgPath;
        this.id = id;
        this.title = title;
        this.updateD = updateD;
        this.timeLong = timeLong;
    }

    @Generated(hash = 1081825944)
    public AdModle() {
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getHttpImgPath() {
        return this.httpImgPath;
    }

    public void setHttpImgPath(String httpImgPath) {
        this.httpImgPath = httpImgPath;
    }

    public String getLocalImgPath() {
        return this.localImgPath;
    }

    public void setLocalImgPath(String localImgPath) {
        this.localImgPath = localImgPath;
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUpdateD() {
        return this.updateD;
    }

    public void setUpdateD(String updateD) {
        this.updateD = updateD;
    }

    public long getTimeLong() {
        return this.timeLong;
    }

    public void setTimeLong(long timeLong) {
        this.timeLong = timeLong;
    }
}
